package com.polarbear.dto;

import java.io.Serializable;

public class ApplyTypeDto implements Serializable {
	private static final long serialVersionUID = -2644077890790331598L;
	private int atidx;
	private String typename;
	
	/*	
	ATIDX	NUMBER
	TYPENAME	VARCHAR2(20 BYTE)
	*/
	
	public ApplyTypeDto(int atidx, String typename) {
		this.atidx = atidx;
		this.typename = typename;
	}
	
	public ApplyTypeDto() {
	}

	public int getAtidx() {
		return atidx;
	}

	public void setAtidx(int atidx) {
		this.atidx = atidx;
	}

	public String getTypename() {
		return typename;
	}

	public void setTypename(String typename) {
		this.typename = typename;
	}

	@Override
	public String toString() {
		return typename;
	}

	@Override
	public boolean equals(Object obj) {
		boolean isS = false;
		
		if (obj instanceof ApplyTypeDto) {
			ApplyTypeDto dto = (ApplyTypeDto)obj;
			
			if(atidx == dto.atidx){
				isS = true;
			}
		}
		return isS;
	}

	@Override
	public int hashCode() {
		return this.hashCode() + 137;
	}
}
